A Framework forAd - Hoc Type Inference ( Extended
نویسندگان
چکیده
Languages based on variations of the lambda calculus are designed to permit the slick, uniication-based technique for type inference, which is by now a well-established discipline. Other widely used languages have been created less by design and more by coincidence and compromise. It seems therefore that the question of type inference for such languages could be infeasible or should at least permit only ad-hoc solutions. In this paper we argue the existence of a uniform framework for developing type inference algorithms, even for seemingly ad-hoc languages. This framework provides useful generalizations of well-known concepts related to type inference. It is, however, by no means a universal algorithm. In fact, the essential algorithmic problem must generally be solved from scratch. We demonstrate the viability of our approach by developing a type inference algorithm for a full version of the Turbo Pascal language.
منابع مشابه
Signal Stability based Adaptive Routing ( SSA ) forAd -
Unlike static networks, ad-hoc networks have no spatial hierarchy and suuer from frequent link failures which prevent mobile hosts from using traditional routing schemes. Under these conditions, mobile hosts must nd routes to destinations without the use of designated routers and also must dynamically adapt the routes to the current link conditions. This paper proposes a distributed adaptive ro...
متن کاملHow To Remove the Ad Hoc Features of Statistical Inference within a Frequentist Paradigm
Our aim is to develop a frequentist theory of decision-making. The resulting unification of the seemingly unrelated theories of hypothesis testing and parameter estimation is based on a new definition of the optimality of a decision rule within an ensemble of token experiments. It is the introduction of ensembles that enables us to avoid the use of subjective Bayesian priors. We also consider t...
متن کاملREAP: ring band-based energy adaptive protocol for information dissemination and forwarding in wireless sensor networks
The design issues related to routing in Wireless Sensor Networks (WSNs) are inherently different from those encountered in traditional mobile ad hoc networks. Routing protocols forad hoc networks usually impose prohibitive demands on scares resources of a sensor node such as memory, bandwidth and energy; therefore, they are not suitable for WSNs. In this paper, we present a novel, energy adapti...
متن کاملTyping and Optimal reduction for λ-calculus in variants of Linear logic for Implicit computational complexity
Lambda-calculus has been introduced to study the mathematical functions from a computa-tional point of view. It has then been used as a basis for the design of functional programminglanguages. Knowing whether there exists a provably most efficient method to reduce lambda-terms, and evaluate the complexity of this operation in general are still open questions.In this thesis, we u...
متن کاملUnifying Nominal and Structural Ad-hoc Polymorphism (Extended Version)
Ad-hoc polymorphism allows the execution of programs to depend on type information. In modern systems, it is useful for implementing generic operations over data structures, such as equality, marshalling, or traversal. In the past, there have been two different forms of ad-hoc polymorphism. The nominal form dispatches on the name of the type argument, whereas the structural form operates by dec...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994